<#assign tit><#if _oper='add'>新增<#else>修改</#if>教练员</#assign>
<@page.html title=tit>
<div style="width:720px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <div style="width:350px; float:left;">
        <table class="input">
          <tr>
            <th width="25%">编号</th>
            <td width="75%"><#if _oper='add'><input type="text" name="code" value="${coach.code!}" req="编号" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="code" value="${coach.code!}">${coach.code!}</#if></td>
          </tr>
          <tr>
            <th>名称</th>
            <td><input type="text" name="chName" value="${coach.chName!}" req="名称" size="26" maxlength="50"><span class="require">*</span></td>
          </tr>
          <tr>
            <th>等级</th>
            <td><select name="coachLevel"><#if coachLevel??><#list coachLevel as t><option value="${t.id}"<#if coach.coachLevel?? && coach.coachLevel=t.id> selected</#if>>${t.name}</option></#list></#if></select></td>
          </tr>
          <tr>
            <th>类型</th>
            <td><select name="coachType"><#if coachType??><#list coachType as t><option value="${t.id}"<#if coach.coachType?? && coach.coachType=t.id> selected</#if>>${t.name}</option></#list></#if></select></td>
          </tr>
          <tr>
            <th>备注</th>
            <td><textarea name="note" cols="30" rows="3">${coach.note!}</textarea></td>
          </tr>
          <tr>
            <th>状态</th>
            <td><input type="radio" name="status" id="enable_1" value="1"<#if coach.status=1> checked</#if>><label for="enable_1">在职</label>
              <input type="radio" name="status" id="enable_2" value="2"<#if coach.status!=1> checked</#if>><label for="enable_2">离职</label></td>
          </tr>
        </table>
      </div>

      <div style="width:300px; float:left; margin-left:10px;">
        <div class="lsinfo" style="margin-top:10px;">教练门店</div>
        <table class="list">
          <tr>
            <th width="13%">选择</th>
            <th width="30%">编号</th>
            <th width="45%" class="left">名称</th>
            <th width="10%"></th>
          </tr>
        </table>
        <div style="height:230px; overflow-y:auto;">
          <table class="list">
            <#if shopList??><#list shopList as t>
              <tr<#if t_index%2==1> class="line2"<#else> class="line1"</#if>>
                <td class="no"><input type="checkbox" name="shops" value="${t.code}" <#if t.status?? && t.status=1> checked</#if>/></td>
                <td>${t.code}</td>
                <td class="left">${t.chName}</td>
              </tr></#list></#if>
          </table>
        </div>
      </div>
      <div class="clear"></div>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>